from time import sleep
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
service = Service(executable_path="E:\python\python38\chromedriver.exe")
driver = webdriver.Chrome(service=service)
driver.get("http://121.43.169.97:8848/pageA.html")
action = ActionChains(driver)
#隐式等待
driver.implicitly_wait(10)
#页码放大
driver.maximize_window()
sleep(5)

driver.find_element(By.CSS_SELECTOR,"#user").send_keys("admin")

#x表达的是函数后面的x表达的是表达式